#ifndef TIMECOMPUTER_H
#define TIMECOMPUTER_H

#include <QWidget>
#include<QMediaPlayer>

QT_BEGIN_NAMESPACE
namespace Ui {
class TimeComputer;
}
QT_END_NAMESPACE

class TimeComputer : public QWidget
{
    Q_OBJECT

public:
    TimeComputer(QWidget *parent = nullptr);
    ~TimeComputer();

private slots:
    void on_pushButton_clicked();
    /*设置负值时的图片*/
    void SetImage(QWidget* &window,const QString &filename);

private:
    Ui::TimeComputer *ui;
    const QString ImgfilePath = ":/Image/resourse/Jay.png";
    const QString MusicPath = ":/music/resourse/fanfangxiangdezhong.mp3";
};
#endif // TIMECOMPUTER_H
